package com.qingcheng.service.comment;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.comment.Comment;

import java.util.*;

/**
 * comment业务逻辑层
 */
public interface CommentService {


    public List<Comment> findAll();


    public PageResult<Comment> findPage(int page, int size);


    public List<Comment> findList(Map<String, Object> searchMap);


    public PageResult<Comment> findPage(Map<String, Object> searchMap, int page, int size);


    public Comment findById(byte[] id);

    public void add(Comment comment);

    /**
     * 根据状态显示
     * @param comment
     */
    public void update(Comment comment);


    public void delete(byte[] id);

    /**
     * 根据用户名查找评论列表
     * @param username
     * @return
     */
    List<Comment> findByUsername(String username);

    public String sensitiveWordmask(Comment comment);
}
